Skip to content
This repository was archived by the owner on Apr 21, 2026. It is now read-only.

Add unit tests for custom charm functionality#121

Closed
tonyandrewmeyer wants to merge 1 commit intocanonical:mainfrom
tonyandrewmeyer:add-unit-tests
Closed

Add unit tests for custom charm functionality#121
tonyandrewmeyer wants to merge 1 commit intocanonical:mainfrom
tonyandrewmeyer:add-unit-tests

Conversation

@tonyandrewmeyer
Copy link
Copy Markdown

Overview

Use ops.testing (Scenario) with the new charmcraft extension autoloading from canonical/operator#2367 to test the charm's custom code on top of the paas-charm base.

Rationale

State transition tests are an inexpensive and quick way to validate charm functionality. Although the core functionality provided by the paas-charm base is tested in the base module, functionality that the charm adds on top of that should be tested by local to the charm tests.

Juju Events Changes

None.

Module Changes

None.

Library Changes

None.

Checklist

I don't believe I can add labels.

Use ops.testing (Scenario) with the proposed charmcraft extension autoloading
from canonical/operator#2367 to test the charm's custom code on top of
the paas-charm base.
@cbartz
Copy link
Copy Markdown
Collaborator

cbartz commented Apr 1, 2026

@tonyandrewmeyer thank you for your contribution. we are no longer actively developing here (sorry this is brand hot news). I will close the PR.

@cbartz cbartz closed this Apr 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants